<template>
  <div class="app-container">
    <h1 style="text-align: center">餐饮数据分析系统</h1>
    <h3 style="text-align: center">欢迎您：{{ userName }}</h3>
  </div>
</template>

<script>
import {mapGetters} from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ]),
    userName() {
      return JSON.parse(sessionStorage.getItem('user')).username
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }

  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
